package m.html.element;

import m.html.element.other.InputElement;

public class Radio extends InputElement {
    public Radio(String field,String dict) {
        super("a-radio-group");
        super.setField(field);
        if(!dict.startsWith("'")) dict="'"+dict+"'";
        super.A(":options","dictOptions("+dict+")");
        viewElement=Element.tag("div").A("class","input-view-box").E("{{dict("+dict+","+field+")}}");
    }
}
